package com.weme.mine.viewmode

import android.util.Log
import com.weme.common.base.BaseViewModel
import com.weme.common.network.NetWorkUrl
import dev.kratos.api.user_server.v1.*

class MineViewMode :BaseViewModel() {


    fun  getFollowCountApi(){
        sendNetworkRequest(GetFollowCountRequest.newBuilder().build().toByteArray(),
            NetWorkUrl.GetFollowCount )
    }
    fun  getFansCountApi(){

        sendNetworkRequest(GetFansCountRequest.newBuilder().build().toByteArray(),
            NetWorkUrl.GetFansCount )
    }



    fun getVipInfoApi() {

        sendNetworkRequest(GetVipInfoRequest.newBuilder().build().toByteArray(),NetWorkUrl.GetVipInfo)
    }






    fun bindAccount(req: BindRequest) {
        val reqByte = req.toByteArray()
        sendNetworkRequest(reqByte, NetWorkUrl.Bind)
    }
    fun getBlockList(page:Int){
        val reqByte = GetBlackListRequest.newBuilder().setPage(page).setLimit(20).build().toByteArray()
        sendNetworkRequest(reqByte, NetWorkUrl.GetBlackList)

    }

    fun  setUnBlock(req: UnBlackRequest){
        sendNetworkRequest(req.toByteArray(),
            NetWorkUrl.UnBlack )
    }
}